package com.yiban.demo.ShuoShuo.Event.ShuoShuoEvent;

import com.yiban.demo.ShuoShuo.Entity.ShuoShuo;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class StandardShuoShuoEvent extends ApplicationEvent {
    private ShuoShuo shuoShuo;

    public StandardShuoShuoEvent(Object source, ShuoShuo shuoShuo) {
        super(source);
        this.shuoShuo = shuoShuo;
    }
    public Integer getShuoShuoId(){
        return shuoShuo.getShuoShuoId();
    }
}
